package com.czxy.demo03;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by hp on 2020/2/26.
 */
public class Classes implements Serializable {
    private String cname;
    private ArrayList<Student> students = new ArrayList<>();

    @Override
    public String toString() {
        return "Classes{" +
                "cname='" + cname + '\'' +
                ", students=" + students +
                '}';
    }

    public Classes(String cname) {
        this.cname = cname;
    }

    public Classes() {
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public ArrayList<Student> getStudents() {
        return students;
    }

    public void setStudents(ArrayList<Student> students) {
        this.students = students;
    }


}
